﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace zombieArena
{
    class Rounds
    {
        public int round { get; set; }
        public int totalEnemies { get; set; }
        public int spawnedEnemies { get; set; }
        public int remainingEnemies { get; set; }

        public Rounds()
        {
            round = 0;
        }

        /// <summary>
        /// Adds one to round number
        /// </summary>
        public void addRound()
        {
            round++;
        }

        /// <summary>
        /// Sets values of enemies for the next round
        /// </summary>
        public void nextRound()
        {
            addRound();
            totalEnemies = 10 * round + 20;
            remainingEnemies = totalEnemies;
            spawnedEnemies = 0;
        }

        /// <summary>
        /// Increments the number of spawned enemies
        /// </summary>
        public void spawnEnemy()
        {
            spawnedEnemies++;
        }

        /// <summary>
        /// Decrements remianing enemies
        /// </summary>
        public void removeEnemy()
        {
            remainingEnemies--;
        }
    }
}
